using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BossIdleState : BossState
{

    public BossIdleState(Enemy enemyBase, Enemy_Boss enemy_Boss, StateMachine<EnemyState> stateMachine, string animBoolName) : base(enemyBase, enemy_Boss, stateMachine, animBoolName)
    {
        
    }

    public override void Enter()
    {
        base.Enter();
        stateTimer.Timer = enemy.idleTime;

    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();
        stateTimer.Timer -= Time.deltaTime;
        if (stateTimer.isOver())
        { 
            stateMachine.ChangeState(enemy.bossBattleState);
        }
    }
}
